
public class PlayerSword extends Player
{
	//here the players and the sword class str are combined to make the players starting str with
	// what weapon they choose.
	// 6 + 3 = 9, the players str now is 9
	//ever since the sword class also gives def here the players def and the def given by the sword
	//are combined making the player have 8 defense
	//speed is taken away by the sword so the player has 2 (attack) speed
	//this class also gets the players health, so health = 10
	static int swordStr = str + Sword.str;;
	int swordDef = def + Sword.def;;
	int swordSpeed =  speed + Sword.speed;; 
	
	static void attacksword()
	{
		System.out.println("You swing your sword!");
		Monster.health -= swordStr;
	}
	
	static void attackboss()
	{
		System.out.println("You swing your sword!");
		MonsterBoss.health -= swordStr;
	}
	static void attackfinalboss()
	{
		System.out.println("You swing your sword!");
		Finalboss.health -= swordStr;
	}
	
	static void attackhardmonster()
	{
		System.out.println("You swing your sword!");
		HardMonster.health -= swordStr;
	}
}

